package com.ssy.lingxi.pay.api.fallback;

import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.pay.api.feign.ICreditBillFeignControllerFeign;
import com.ssy.lingxi.pay.api.model.vo.request.CreditBillInitVO;
import org.springframework.stereotype.Component;

import javax.validation.Valid;

@Component
public class CreditBillControllerFallback implements ICreditBillFeignControllerFeign {

    /**
     * 初始化会员授信
     * @author 伍将
     * @date 2020/8/28
     * @param initVO: 
     * @return com.ssy.lingxi.common.response.Wrapper
     **/
    @Override
    public Wrapper init(@Valid CreditBillInitVO initVO) {
        return Wrapper.fail(ResponseCode.SERVICE_PAY_ERROR);
    }

    /**
     * 初始化逾期账单
     * @author 伍将
     * @date 2020/8/28
     * @param initVO:
     * @return com.ssy.lingxi.common.response.Wrapper
     **/
    @Override
    public Wrapper initOverdue(CreditBillInitVO initVO) {
        return Wrapper.fail(ResponseCode.SERVICE_PAY_ERROR);
    }
}
